package com.angel.mapper;

import com.angel.bean.dto.IllCaseDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.angel.bean.IllCase;

@Mapper
public interface IllCaseDao {
    int insert(@Param("illCase") IllCase illCase);

    int insertSelective(@Param("illCase") IllCase illCase);

    int insertList(@Param("illCases") List<IllCase> illCases);

    int update(@Param("illCase") IllCase illCase);

    List<IllCase> findIllCase(@Param("illCase") IllCase illCase);

    List<IllCaseDto> getIllCaseAndBabyInfoAndUserInfo(@Param("illCaseDto")IllCaseDto illCaseDto);

    int delete(@Param("illCase") IllCase illCase);

    /**
     * 获取宝宝的调理次数
     * @param illCase
     * @return
     */
    int getCountAndBabyid(@Param("illCase") IllCase illCase);

    int getIllCaseState5Count(@Param("illCase") IllCase illCase);
}
